﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MaLu.Common;
using System.Data;
using MaLu.BusiLogic;
using MaLu.Framework.BusiLogic;

namespace MaluJg.web.Villages
{
    public partial class VBusiAlert : VBusiPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                BindData();
            }
        }

        private void BindData()
        {

            DataTable DTMyProposal = BLVillage.VGetAlert(Provider, Year, Quarter).Tables[0];
            DTMyProposal.Columns.Add("img");
            foreach (DataRow item in DTMyProposal.Rows)
            {
                if (item["recordcount"].ToString() == "0")
                {
                    item["img"] = "<img src='../images/jdz.gif' alt='' />";
                
                }
            }
            rptProject.DataSource = DTMyProposal;
            rptProject.DataBind();
        }
    }
}
